﻿using Abp.Runtime.Validation;
using Camc.Quality.Dto;

namespace Camc.Quality.Bom.Dto
{

   public class GetBomContentListInput:PagedAndSortedInputDto, IShouldNormalize
    {
        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 物料代码
        /// </summary>
        public string MaterialNo { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        public string Model { get; set; }
        /// <summary>
        /// 发次
        /// </summary>
        public string SendTime { get; set; } = "1";
        /// <summary>
        /// 状态
        /// </summary>
        public int Status { get; set; }
        public void Normalize()
        {
            if (string.IsNullOrEmpty(Sorting))
            {
                Sorting = "CreationTime Desc";
            }
        }
    }
}
